using System;
using System.Collections.Generic;
using System.Text;

namespace LiveStock.Evaluation
{
    class NewsItem
    {
        private string _title;
        private string _description;
        private string _URL;
        private DateTime _publishDate;
        private int _evaluationSourceID;

        public NewsItem(string title, string description, string URL, DateTime publishDate, int evaluationSourceID)
        {
            _title = title;
            _description = description;
            _URL = URL;
            _publishDate = publishDate;
            _evaluationSourceID = evaluationSourceID;
        }

        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        public string URL
        {
            get { return _URL; }
            set { _URL = value; }
        }
        public DateTime PublishDate
        {
            get { return _publishDate; }
            set { _publishDate = value; }
        }
        public int EvaluationSourceID
        {
            get { return _evaluationSourceID; }
            set { _evaluationSourceID = value; }
        }

        public bool Equals(NewsItem other)
        {
            return this._title.Equals(other._title);
        }
    }
}
